import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

class Student{
    //字段
    String name;
    int age;
    //方法
    public void learn(String x){
        System.out.println(name+"学习"+x);
    }
    public void eat(){
        System.out.println(name+"不知道今晚吃什么");
    }
}
public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "风息";
        s1.age = 2;
        System.out.println(s1.name+"今年"+s1.age+"岁");
        s1.learn("捕猎");
        s1.eat();
    }
}
